﻿using Data;
using Data.Common;
using Data.Model;
using Data.ViewModel;

namespace DataAccess.BikeManage
{
    public interface IBike
    {
        int AddBike(bike bike);
        ResultInfo<bool> DeleteBike(int id);
        ResultInfo<int> CreateOrUpdateBike(bike bike);
        ResultInfo<bike> GetBike(int id);
        ResultInfo<PagingDataSet<BikeView>> GetBikes(int pageIndex, int pageSize, string bikecode, string lockaddress, string controlbox, int status);
    }
}
